package com.woniuxy.main.service.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.woniuxy.main.mapper.Vi_user_coachMapper;
import com.woniuxy.main.mapper.Vi_user_studentMapper;
import com.woniuxy.main.pojo.Vi_user_coach;
import com.woniuxy.main.pojo.Vi_user_student;
import com.woniuxy.main.service.Vi_user_coachService;
import com.woniuxy.main.service.Vi_user_studentService;
@Service
@Transactional
public class Vi_user_studentServiceImp implements Vi_user_studentService {
	@Resource
	private Vi_user_studentMapper vi_user_studentMapper;

	public Vi_user_studentMapper getVi_user_studentMapper() {
		return vi_user_studentMapper;
	}

	public void setVi_user_studentMapper(Vi_user_studentMapper vi_user_studentMapper) {
		this.vi_user_studentMapper = vi_user_studentMapper;
	}

	@Override
	public List<Vi_user_student> all() {
		
		return vi_user_studentMapper.all();
	}

	@Override
	public Vi_user_student selectByUid(int uid) {
		
		return vi_user_studentMapper.selectByUid(uid);
	}

	@Override
	public List<Vi_user_student> showStudentList(int page) {
		return vi_user_studentMapper.showStudentList(page);
	}

	@Override
	public int totalPage() {
		return vi_user_studentMapper.totalPage();
	}

}
